<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

</head>

<body>

    <script>
        // const arr = [];//new Array();

        // 正则（正确规则）
        // const reg = new RegExp('abc', 'ig');
        // const reg = /abc/ig

        // const reg = new RegExp('abc');
        const reg = /abc/
    </script>
</body>

</html>